using Domain.Repositories;
using Services;

public class DatabaseService : IDatabaseService
{
    readonly IChapterRepository chapterRepository;
    private readonly ITopicRepository topicRepository;
    private readonly ICourseRepository courseRepository;
    private readonly IQuizRepository quizRepository;
    private readonly IQuestionRepository questionRepository;
    private readonly IAnswerRepository answerRepository;
    public DatabaseService(IChapterRepository chapterRepository, ITopicRepository topicRepository, ICourseRepository courseRepository, IQuizRepository quizRepository, IQuestionRepository questionRepository, IAnswerRepository answerRepository)
    {
        this.courseRepository = courseRepository;
        this.chapterRepository = chapterRepository;
        this.topicRepository = topicRepository;
        this.quizRepository = quizRepository;
        this.questionRepository = questionRepository;
        this.answerRepository = answerRepository;
    }


    public IChapterRepository Chapters
    {
        get { return chapterRepository; }
    }

    public ITopicRepository Topics
    {
        get { return topicRepository; }
    }

    public ICourseRepository Courses
    {
        get { return courseRepository; }
    }

    public IQuizRepository Quizes
    {
        get { return quizRepository; }
    }

    public IQuestionRepository Questions
    {
        get { return questionRepository; }
    }

    public IAnswerRepository Answers
    {
        get { return answerRepository; }
    }
}